<?php
namespace app\index\controller;

use think\Controller;
use think\Db;

class Index extends Controller
{
    public function index()
    {
//        var_dump($list);
        return view('index/home');
    }

       public function phoneneww()
    {
        $data = Db::name('club_phonenew')->select();
        foreach ($data as $k => $v) {
            $data[$k]['createTime'] = date('Y-m-d h:i:s',$v['createTime']);
        }
        // var_dump($data);die;
        return view('phoneneww/phoneneww',[
            'data' => $data
        ]);
    }
}
